import requests
# REST

r = requests.get("http://localhost:8800/api/login2?username=wo&password=ni")
print(bytes.decode(r.content))

# post 方法
r = requests.post("http://localhost:8800/api/login2",data={"username":"wo","password":"ni"})
print(bytes.decode(r.content))

## 有session

s = requests.session()
r = s.get("http://localhost:8800")
# 测试没有session的时候，是否通过


# r = requests.delete("http://localhost:8800/api/userid")